package com.asteros.crypto;

import com.asteros.crypto.utils.content.ContentManager;
import com.asteros.crypto.utils.services.CryptoService;
import com.asteros.crypto.utils.services.CryptoServiceConfig;

public final class ServerClient extends CryptoService
{
	private ContentManager contentManager = null;

	public ServerClient() throws Exception {
		this(null, null);
	}

	public ServerClient(CryptoServiceConfig serviceConfig, ContentManager contentManager) throws Exception
	{
		super(serviceConfig);
		this.contentManager = contentManager;
	}

	public void init(CryptoServiceConfig serviceConfig) throws Exception
	{
		System.out.println("ServerClient.init>>");
		System.out.println("ServerClient.init<<");
	}

	public void verifyDocumentSignature(String userId, String documentId) throws Exception
	{
		this.contentManager.verifyDocumentSignature(userId, documentId);
	}

	public void setContentManager(ContentManager contentManager) {
		this.contentManager = contentManager;
	}
}